package com._21cn.cms.site.dao.mybatis;

import com._21cn.cms.site.dao.SiteDao;
import com._21cn.cms.site.entity.Site;
import com._21cn.framework.base.db.mybatis.BaseDaoMybatis;
import org.apache.ibatis.session.SqlSessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.beans.factory.annotation.Required;
import org.springframework.stereotype.Repository;

@Repository("siteDao")
public class SiteDaoMybatis extends BaseDaoMybatis<Site> implements SiteDao {

    public SiteDaoMybatis() {
        super();
        setNameSpace( "t_cms_site" );
    }

    @Required
    @Autowired
    @Qualifier("sqlSessionFactory")
    public void setSqlSessionFactory(SqlSessionFactory sqlSessionFactory) {
        super.setSqlSessionFactory( sqlSessionFactory );
    }

}